import store from "@/store";
import dayjs from "dayjs";
export const formItemStyle = {
  paddingLeft: "20px",
};

export const cellStyle = {
  background: "rgba(28, 155, 252, 0.02)",
  color: "rgb(142, 155, 185)",
  textAlign: "center",
};

// 表头单元格样式
export const headerCellStyle = {
  background: "rgba(28, 155, 252, 0.02)",
  color: "rgb(142, 155, 185)",
  textAlign: "center",
};
// 表格内表单子样式
export const tableFormStyle = {
  marginBottom: 0,
};

// 表格项配置
export const tableBase = [
  {
    label: "ID",
    prop: "id",
  },
  {
    label: "名称",
    prop: "name",
    width: 150,
    operate: {
      type: "input",
      field: "name",
    },
  },
  {
    label: "备注说明",
    prop: "remarks",
    otherOptions: {},
    operate: {
      type: "input",
      field: "remarks",
    },
  },

  {
    label: "店铺",
    prop: "shopId",
    width: 150,
    operate: {
      type: "select",
      field: "shopId",
      optionsKey: "shopName",
      optionsValue: "id",
      options: store.state.custom_dict.shop,
      otherOptions: {
        multiple: true,
      },
    },
  },

  {
    label: "立方算费",
    prop: "cubicCalculationFee",
    slotName: "cubicCalculationFee",
  },
  {
    label: "地址附加费",
    prop: "addressSurcharge",
    slotName: "addressSurcharge",
  },
  {
    label: "创建人",
    prop: "createBy",
  },
  {
    label: "创建时间",
    prop: "createTime",
  },
];
